﻿@model Smarly.Ebook.Model.EBookTree
@foreach (var txt in Model.Children)
{
	if (txt.IsHead)
	{
		<h2>@txt.Text</h2>
		if (txt.Children != null && txt.Children.Count > 0)
		{
			@Html.Partial("_TextPartial", txt)
		}
	}
	else
	{
		@Html.Raw(txt.Text)

	}
}
